#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QGridLayout>
#include <QAccelerometer>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();

public:
    QPushButton *pushbutton;

    QLabel *labelX;
    QLabel *labelY;
    QLabel *labelZ;

    QLabel *Xvalue;
    QLabel *Yvalue;
    QLabel *Zvalue;

    QGridLayout *layout;

    QAccelerometer *accelerometer;

public slots:
    void MyShow();
    void Switch();

};

#endif // WIDGET_H
